<html> 
<head> 
<title>Javascript for validation</title> 
</head> 
 
<body> 

<script type="text/javascript" src="http://mochikit.org/MochiKit/MochiKit.js"></script> 

<script type="text/javascript"> 
var int_keys_only = function (event) {
  var c = event.key().string;
  if ("0123456789".indexOf(c) == -1) {
    /* unknown key pressed; ignore it */
    event.stop();
  }
}
</script> 
 
<form method="GET" action="lookup_taxid"> 
Placar:
<input type="text" size="7" name="score1" id="score1"> 
<input type="text" size="7" name="score2" id="score2"> 
</form> 
<script type="text/javascript"> 
connect("score1", "onkeypress", int_keys_only);
connect("score2", "onkeypress", int_keys_only);
</script> 
</p> 

DALTON 

</body> 
</html> 